package com.example.wan1.view.homenew;

import com.example.wan1.base.mvp.IBaseView;
import com.example.wan1.model.ArticleBean;
import com.example.wan1.model.BannerBean;
import com.example.wan1.model.common.CommonResList;

import java.util.List;

/***
 * @Author: zxd
 * @CreateDate: 2021/5/13 14:36
 * @Description:
 */
public interface NewHomeContract {

    interface View extends IBaseView {
        void onSuccess(CommonResList<ArticleBean> data);

        void onSuccessBanner(List<BannerBean> data);

        void onFailure(String msg);

        void onSuccessArticle(List<ArticleBean> data);
    }

    interface Presenter {

        void getArticleList(int page);

        void getBannerList();
    }
}
